#!/usr/bin/env ruby

require 'log4r'

# TODO: simmon should leave this up to the user, while still
# providing a sensible default

# syslog outputter redefines custom log levels and breaks
# logging globally; disable for now
#require 'log4r/outputter/syslogoutputter'

module Simmon

  def Simmon.initialize_logging()
    #syslog = Log4r::SyslogOutputter.new("simmon")
    
    log = Log4r::Logger.new("simmon")
    log.outputters = Log4r::Outputter.stdout
    #log.outputters = [Log4r::Outputter.stdout, syslog]
  end
end

Simmon::initialize_logging()

